package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pro.vo.WorkflowProcessRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/18 - 19:10
 */
public interface WorkFlowProcessService {
    PageInfo<WorkflowProcessRelation> queryProcessCompositionsByWorkflowIdWithPaging(Integer page,
                                                            Integer size,
                                                            Integer workflowId);

    /*
    新增工序组成
     */
    int addWorkflowProcessRelation(WorkflowProcessRelation workflowProcessRelation);

    /*
    根据id查询工艺工序组成
     */
    WorkflowProcessRelation getWorkflowProcessRelationById(Integer id);

    /*
 编辑工艺的工序组成
  */
    int updateWorkflowProcessRelation(WorkflowProcessRelation workflowProcessRelation);

    /*
根据工艺的工序组成编号删除单个工序组成
 */
    int deleteWorkflowProcessRelationById(Integer id);

     /*
  批量删除工艺的工序组成
   */
    int deleteWorkflowProcessRelationByIds(@Param("id") List<Integer> ids);
}
